package Test;

import java.util.*;

public class Test {

	public static void main(String[] args) {
		ArrayList list=new ArrayList<>();
		Thread a = new Thread() {
			public void run() {
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				System.out.println("1");
				
			}
		};

		Thread b = new Thread() {
			public void run() {
				System.out.println("2");
				System.out.println("2");
				System.out.println("2");
				System.out.println("2");
				System.out.println("2");
				System.out.println("2");
			}
		};
		a.start();
		b.start();

	}
}
